
<%@ page import="com.afb.HHPredJob" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="main" />
        <g:set var="entityName" value="${message(code: 'HHPredJob.label', default: 'HHPredJob')}" />
        <title><g:message code="default.edit.label" args="[entityName]" /></title>
    </head>
    <body>
        <div class="nav">
            <span class="menuButton"><a class="home" href="${createLink(uri: '/')}">Home</a></span>
            <span class="menuButton"><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></span>
            <span class="menuButton"><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></span>
        </div>
        <div class="body">
            <h1><g:message code="default.edit.label" args="[entityName]" /></h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <g:hasErrors bean="${HHPredJobInstance}">
            <div class="errors">
                <g:renderErrors bean="${HHPredJobInstance}" as="list" />
            </div>
            </g:hasErrors>
            <g:form method="post" >
                <g:hiddenField name="id" value="${HHPredJobInstance?.id}" />
                <g:hiddenField name="version" value="${HHPredJobInstance?.version}" />
                <div class="dialog">
                    <table>
                        <tbody>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="proteinSequences"><g:message code="HHPredJob.proteinSequences.label" default="Protein Sequences" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: HHPredJobInstance, field: 'proteinSequences', 'errors')}">
                                    <g:textArea name="proteinSequences" cols="40" rows="5" value="${HHPredJobInstance?.proteinSequences}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="hmmDatabases"><g:message code="HHPredJob.hmmDatabases.label" default="Hmm Databases" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: HHPredJobInstance, field: 'hmmDatabases', 'errors')}">
                                    <g:select name="hmmDatabases" from="${HHPredJobInstance.constraints.hmmDatabases.inList}" value="${HHPredJobInstance?.hmmDatabases}" valueMessagePrefix="HHPredJob.hmmDatabases"  />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="maxPsiBlastIterations"><g:message code="HHPredJob.maxPsiBlastIterations.label" default="Max Psi Blast Iterations" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: HHPredJobInstance, field: 'maxPsiBlastIterations', 'errors')}">
                                    <g:select name="maxPsiBlastIterations" from="${0..10}" value="${fieldValue(bean: HHPredJobInstance, field: 'maxPsiBlastIterations')}"  />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="scoreSecondaryStructure"><g:message code="HHPredJob.scoreSecondaryStructure.label" default="Score Secondary Structure" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: HHPredJobInstance, field: 'scoreSecondaryStructure', 'errors')}">
                                    <g:select name="scoreSecondaryStructure" from="${HHPredJobInstance.constraints.scoreSecondaryStructure.inList}" value="${HHPredJobInstance?.scoreSecondaryStructure}" valueMessagePrefix="HHPredJob.scoreSecondaryStructure"  />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="alignmentMode"><g:message code="HHPredJob.alignmentMode.label" default="Alignment Mode" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: HHPredJobInstance, field: 'alignmentMode', 'errors')}">
                                    <g:select name="alignmentMode" from="${HHPredJobInstance.constraints.alignmentMode.inList}" value="${HHPredJobInstance?.alignmentMode}" valueMessagePrefix="HHPredJob.alignmentMode"  />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="realignWithMac"><g:message code="HHPredJob.realignWithMac.label" default="Realign With Mac" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: HHPredJobInstance, field: 'realignWithMac', 'errors')}">
                                    <g:checkBox name="realignWithMac" value="${HHPredJobInstance?.realignWithMac}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="eValueThresholdPsiBlast"><g:message code="HHPredJob.eValueThresholdPsiBlast.label" default="EV alue Threshold Psi Blast" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: HHPredJobInstance, field: 'eValueThresholdPsiBlast', 'errors')}">
                                    <g:select name="eValueThresholdPsiBlast" from="${HHPredJobInstance.constraints.eValueThresholdPsiBlast.inList}" value="${HHPredJobInstance?.eValueThresholdPsiBlast}" valueMessagePrefix="HHPredJob.eValueThresholdPsiBlast"  />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="minCoveragePsiBlastHits"><g:message code="HHPredJob.minCoveragePsiBlastHits.label" default="Min Coverage Psi Blast Hits" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: HHPredJobInstance, field: 'minCoveragePsiBlastHits', 'errors')}">
                                    <g:select name="minCoveragePsiBlastHits" from="${HHPredJobInstance.constraints.minCoveragePsiBlastHits.inList}" value="${HHPredJobInstance?.minCoveragePsiBlastHits}" valueMessagePrefix="HHPredJob.minCoveragePsiBlastHits"  />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="minSequenceIdentityOfPsiBlastHitsWithQuery"><g:message code="HHPredJob.minSequenceIdentityOfPsiBlastHitsWithQuery.label" default="Min Sequence Identity Of Psi Blast Hits With Query" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: HHPredJobInstance, field: 'minSequenceIdentityOfPsiBlastHitsWithQuery', 'errors')}">
                                    <g:select name="minSequenceIdentityOfPsiBlastHitsWithQuery" from="${HHPredJobInstance.constraints.minSequenceIdentityOfPsiBlastHitsWithQuery.inList}" value="${HHPredJobInstance?.minSequenceIdentityOfPsiBlastHitsWithQuery}" valueMessagePrefix="HHPredJob.minSequenceIdentityOfPsiBlastHitsWithQuery"  />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="macRealignmentThreshold"><g:message code="HHPredJob.macRealignmentThreshold.label" default="Mac Realignment Threshold" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: HHPredJobInstance, field: 'macRealignmentThreshold', 'errors')}">
                                    <g:select name="macRealignmentThreshold" from="${HHPredJobInstance.constraints.macRealignmentThreshold.inList}" value="${HHPredJobInstance?.macRealignmentThreshold}" valueMessagePrefix="HHPredJob.macRealignmentThreshold"  />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="compositionalBiasCorrection"><g:message code="HHPredJob.compositionalBiasCorrection.label" default="Compositional Bias Correction" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: HHPredJobInstance, field: 'compositionalBiasCorrection', 'errors')}">
                                    <g:checkBox name="compositionalBiasCorrection" value="${HHPredJobInstance?.compositionalBiasCorrection}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="showSequencesPerHMM"><g:message code="HHPredJob.showSequencesPerHMM.label" default="Show Sequences Per HMM" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: HHPredJobInstance, field: 'showSequencesPerHMM', 'errors')}">
                                    <g:select name="showSequencesPerHMM" from="${HHPredJobInstance.constraints.showSequencesPerHMM.inList}" value="${HHPredJobInstance?.showSequencesPerHMM}" valueMessagePrefix="HHPredJob.showSequencesPerHMM"  />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="widthOfAlignments"><g:message code="HHPredJob.widthOfAlignments.label" default="Width Of Alignments" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: HHPredJobInstance, field: 'widthOfAlignments', 'errors')}">
                                    <g:textField name="widthOfAlignments" value="${fieldValue(bean: HHPredJobInstance, field: 'widthOfAlignments')}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="minProbabilityInHitList"><g:message code="HHPredJob.minProbabilityInHitList.label" default="Min Probability In Hit List" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: HHPredJobInstance, field: 'minProbabilityInHitList', 'errors')}">
                                    <g:textField name="minProbabilityInHitList" value="${fieldValue(bean: HHPredJobInstance, field: 'minProbabilityInHitList')}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="maxNumberOfHitsInHitList"><g:message code="HHPredJob.maxNumberOfHitsInHitList.label" default="Max Number Of Hits In Hit List" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: HHPredJobInstance, field: 'maxNumberOfHitsInHitList', 'errors')}">
                                    <g:textField name="maxNumberOfHitsInHitList" value="${fieldValue(bean: HHPredJobInstance, field: 'maxNumberOfHitsInHitList')}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="description"><g:message code="HHPredJob.description.label" default="Description" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: HHPredJobInstance, field: 'description', 'errors')}">
                                    <g:textField name="description" value="${HHPredJobInstance?.description}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="name"><g:message code="HHPredJob.name.label" default="Name" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: HHPredJobInstance, field: 'name', 'errors')}">
                                    <g:textField name="name" value="${HHPredJobInstance?.name}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="user"><g:message code="HHPredJob.user.label" default="User" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: HHPredJobInstance, field: 'user', 'errors')}">
                                    <g:select name="user.id" from="${com.afb.User.list()}" optionKey="id" value="${HHPredJobInstance?.user?.id}"  />
                                </td>
                            </tr>
                        
                        </tbody>
                    </table>
                </div>
                <div class="buttons">
                    <span class="button"><g:actionSubmit class="save" action="update" value="${message(code: 'default.button.update.label', default: 'Update')}" /></span>
                    <span class="button"><g:actionSubmit class="delete" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" /></span>
                </div>
            </g:form>
        </div>
    </body>
</html>
